﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    class PedlarNPC : NPC
    {
        private string deal;
        public PedlarNPC(string name,NPCtype type,string deal):base(name,type) {
            this.deal = deal;
        }
        public override void talk()
        {
            Console.WriteLine("我这里有武器！");
            Console.WriteLine("{2}NPC:{0},售卖:{1}",base.Name,this.deal,NPCtype.Pedlar);
        }
    }
    class PedlarNPC1 : NPC
    {
        private string deal;
        public PedlarNPC1(string name, NPCtype type, string deal) : base(name, type)
        {
            this.deal = deal;
        }
        public override void talk()
        {
            Console.WriteLine("我这里有材料！");
            Console.WriteLine("{2}NPC:{0},售卖:{1}", base.Name, this.deal, NPCtype.Pedlar);
        }
    }
    class PedlarNPC2 : NPC
    {
        private string deal;
        public PedlarNPC2(string name, NPCtype type, string deal) : base(name, type)
        {
            this.deal = deal;
        }
        public override void talk()
        {
            Console.WriteLine("我这里有食物！");
            Console.WriteLine("{2}NPC:{0},售卖:{1}", base.Name, this.deal, NPCtype.Pedlar);
        }
    }
}
